
recursion-02:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400500 <_init>:
  400500:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400504:	910003fd 	mov	x29, sp
  400508:	94000038 	bl	4005e8 <call_weak_fn>
  40050c:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400510:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400520 <.plt>:
  400520:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400524:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf704>
  400528:	f947fe11 	ldr	x17, [x16, #4088]
  40052c:	913fe210 	add	x16, x16, #0xff8
  400530:	d61f0220 	br	x17
  400534:	d503201f 	nop
  400538:	d503201f 	nop
  40053c:	d503201f 	nop

0000000000400540 <__libc_start_main@plt>:
  400540:	b0000090 	adrp	x16, 411000 <__libc_start_main@GLIBC_2.17>
  400544:	f9400211 	ldr	x17, [x16]
  400548:	91000210 	add	x16, x16, #0x0
  40054c:	d61f0220 	br	x17

0000000000400550 <__gmon_start__@plt>:
  400550:	b0000090 	adrp	x16, 411000 <__libc_start_main@GLIBC_2.17>
  400554:	f9400611 	ldr	x17, [x16, #8]
  400558:	91002210 	add	x16, x16, #0x8
  40055c:	d61f0220 	br	x17

0000000000400560 <abort@plt>:
  400560:	b0000090 	adrp	x16, 411000 <__libc_start_main@GLIBC_2.17>
  400564:	f9400a11 	ldr	x17, [x16, #16]
  400568:	91004210 	add	x16, x16, #0x10
  40056c:	d61f0220 	br	x17

0000000000400570 <__isoc99_scanf@plt>:
  400570:	b0000090 	adrp	x16, 411000 <__libc_start_main@GLIBC_2.17>
  400574:	f9400e11 	ldr	x17, [x16, #24]
  400578:	91006210 	add	x16, x16, #0x18
  40057c:	d61f0220 	br	x17

0000000000400580 <printf@plt>:
  400580:	b0000090 	adrp	x16, 411000 <__libc_start_main@GLIBC_2.17>
  400584:	f9401211 	ldr	x17, [x16, #32]
  400588:	91008210 	add	x16, x16, #0x20
  40058c:	d61f0220 	br	x17

0000000000400590 <putchar@plt>:
  400590:	b0000090 	adrp	x16, 411000 <__libc_start_main@GLIBC_2.17>
  400594:	f9401611 	ldr	x17, [x16, #40]
  400598:	9100a210 	add	x16, x16, #0x28
  40059c:	d61f0220 	br	x17

Disassembly of section .text:

00000000004005a0 <_start>:
  4005a0:	d280001d 	mov	x29, #0x0                   	// #0
  4005a4:	d280001e 	mov	x30, #0x0                   	// #0
  4005a8:	aa0003e5 	mov	x5, x0
  4005ac:	f94003e1 	ldr	x1, [sp]
  4005b0:	910023e2 	add	x2, sp, #0x8
  4005b4:	910003e6 	mov	x6, sp
  4005b8:	580000c0 	ldr	x0, 4005d0 <_start+0x30>
  4005bc:	580000e3 	ldr	x3, 4005d8 <_start+0x38>
  4005c0:	58000104 	ldr	x4, 4005e0 <_start+0x40>
  4005c4:	97ffffdf 	bl	400540 <__libc_start_main@plt>
  4005c8:	97ffffe6 	bl	400560 <abort@plt>
  4005cc:	00000000 	.inst	0x00000000 ; undefined
  4005d0:	00400824 	.word	0x00400824
  4005d4:	00000000 	.word	0x00000000
  4005d8:	00400840 	.word	0x00400840
  4005dc:	00000000 	.word	0x00000000
  4005e0:	004008c0 	.word	0x004008c0
  4005e4:	00000000 	.word	0x00000000

00000000004005e8 <call_weak_fn>:
  4005e8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf704>
  4005ec:	f947f000 	ldr	x0, [x0, #4064]
  4005f0:	b4000040 	cbz	x0, 4005f8 <call_weak_fn+0x10>
  4005f4:	17ffffd7 	b	400550 <__gmon_start__@plt>
  4005f8:	d65f03c0 	ret
  4005fc:	00000000 	.inst	0x00000000 ; undefined

0000000000400600 <deregister_tm_clones>:
  400600:	b0000080 	adrp	x0, 411000 <__libc_start_main@GLIBC_2.17>
  400604:	91010000 	add	x0, x0, #0x40
  400608:	b0000081 	adrp	x1, 411000 <__libc_start_main@GLIBC_2.17>
  40060c:	91010021 	add	x1, x1, #0x40
  400610:	eb00003f 	cmp	x1, x0
  400614:	540000a0 	b.eq	400628 <deregister_tm_clones+0x28>  // b.none
  400618:	90000001 	adrp	x1, 400000 <_init-0x500>
  40061c:	f9447021 	ldr	x1, [x1, #2272]
  400620:	b4000041 	cbz	x1, 400628 <deregister_tm_clones+0x28>
  400624:	d61f0020 	br	x1
  400628:	d65f03c0 	ret
  40062c:	d503201f 	nop

0000000000400630 <register_tm_clones>:
  400630:	b0000080 	adrp	x0, 411000 <__libc_start_main@GLIBC_2.17>
  400634:	91010000 	add	x0, x0, #0x40
  400638:	b0000081 	adrp	x1, 411000 <__libc_start_main@GLIBC_2.17>
  40063c:	91010021 	add	x1, x1, #0x40
  400640:	cb000021 	sub	x1, x1, x0
  400644:	9343fc21 	asr	x1, x1, #3
  400648:	8b41fc21 	add	x1, x1, x1, lsr #63
  40064c:	9341fc21 	asr	x1, x1, #1
  400650:	b40000a1 	cbz	x1, 400664 <register_tm_clones+0x34>
  400654:	90000002 	adrp	x2, 400000 <_init-0x500>
  400658:	f9447442 	ldr	x2, [x2, #2280]
  40065c:	b4000042 	cbz	x2, 400664 <register_tm_clones+0x34>
  400660:	d61f0040 	br	x2
  400664:	d65f03c0 	ret

0000000000400668 <__do_global_dtors_aux>:
  400668:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40066c:	910003fd 	mov	x29, sp
  400670:	f9000bf3 	str	x19, [sp, #16]
  400674:	b0000093 	adrp	x19, 411000 <__libc_start_main@GLIBC_2.17>
  400678:	39410260 	ldrb	w0, [x19, #64]
  40067c:	35000080 	cbnz	w0, 40068c <__do_global_dtors_aux+0x24>
  400680:	97ffffe0 	bl	400600 <deregister_tm_clones>
  400684:	52800020 	mov	w0, #0x1                   	// #1
  400688:	39010260 	strb	w0, [x19, #64]
  40068c:	f9400bf3 	ldr	x19, [sp, #16]
  400690:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400694:	d65f03c0 	ret

0000000000400698 <frame_dummy>:
  400698:	17ffffe6 	b	400630 <register_tm_clones>

000000000040069c <factorial>:
  40069c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4006a0:	910003fd 	mov	x29, sp
  4006a4:	b9001fa0 	str	w0, [x29, #28]
  4006a8:	b9401fa0 	ldr	w0, [x29, #28]
  4006ac:	7100001f 	cmp	w0, #0x0
  4006b0:	54000061 	b.ne	4006bc <factorial+0x20>  // b.any
  4006b4:	52800020 	mov	w0, #0x1                   	// #1
  4006b8:	14000007 	b	4006d4 <factorial+0x38>
  4006bc:	b9401fa0 	ldr	w0, [x29, #28]
  4006c0:	51000400 	sub	w0, w0, #0x1
  4006c4:	97fffff6 	bl	40069c <factorial>
  4006c8:	2a0003e1 	mov	w1, w0
  4006cc:	b9401fa0 	ldr	w0, [x29, #28]
  4006d0:	1b007c20 	mul	w0, w1, w0
  4006d4:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4006d8:	d65f03c0 	ret

00000000004006dc <fib>:
  4006dc:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  4006e0:	910003fd 	mov	x29, sp
  4006e4:	f9000bf3 	str	x19, [sp, #16]
  4006e8:	b9002fa0 	str	w0, [x29, #44]
  4006ec:	b9402fa0 	ldr	w0, [x29, #44]
  4006f0:	7100041f 	cmp	w0, #0x1
  4006f4:	540000cc 	b.gt	40070c <fib+0x30>
  4006f8:	b9402fa0 	ldr	w0, [x29, #44]
  4006fc:	7100001f 	cmp	w0, #0x0
  400700:	1a9f07e0 	cset	w0, ne  // ne = any
  400704:	12001c00 	and	w0, w0, #0xff
  400708:	14000009 	b	40072c <fib+0x50>
  40070c:	b9402fa0 	ldr	w0, [x29, #44]
  400710:	51000400 	sub	w0, w0, #0x1
  400714:	97fffff2 	bl	4006dc <fib>
  400718:	2a0003f3 	mov	w19, w0
  40071c:	b9402fa0 	ldr	w0, [x29, #44]
  400720:	51000800 	sub	w0, w0, #0x2
  400724:	97ffffee 	bl	4006dc <fib>
  400728:	0b000260 	add	w0, w19, w0
  40072c:	f9400bf3 	ldr	x19, [sp, #16]
  400730:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400734:	d65f03c0 	ret

0000000000400738 <fib_die>:
  400738:	a9b47bfd 	stp	x29, x30, [sp, #-192]!
  40073c:	910003fd 	mov	x29, sp
  400740:	b9001bbf 	str	wzr, [x29, #24]
  400744:	52800020 	mov	w0, #0x1                   	// #1
  400748:	b9001fa0 	str	w0, [x29, #28]
  40074c:	52800040 	mov	w0, #0x2                   	// #2
  400750:	b900bfa0 	str	w0, [x29, #188]
  400754:	1400001c 	b	4007c4 <fib_die+0x8c>
  400758:	b940bfa0 	ldr	w0, [x29, #188]
  40075c:	51000400 	sub	w0, w0, #0x1
  400760:	93407c00 	sxtw	x0, w0
  400764:	d37ef400 	lsl	x0, x0, #2
  400768:	910063a1 	add	x1, x29, #0x18
  40076c:	b8606821 	ldr	w1, [x1, x0]
  400770:	b940bfa0 	ldr	w0, [x29, #188]
  400774:	51000800 	sub	w0, w0, #0x2
  400778:	93407c00 	sxtw	x0, w0
  40077c:	d37ef400 	lsl	x0, x0, #2
  400780:	910063a2 	add	x2, x29, #0x18
  400784:	b8606840 	ldr	w0, [x2, x0]
  400788:	0b000022 	add	w2, w1, w0
  40078c:	b980bfa0 	ldrsw	x0, [x29, #188]
  400790:	d37ef400 	lsl	x0, x0, #2
  400794:	910063a1 	add	x1, x29, #0x18
  400798:	b8206822 	str	w2, [x1, x0]
  40079c:	b980bfa0 	ldrsw	x0, [x29, #188]
  4007a0:	d37ef400 	lsl	x0, x0, #2
  4007a4:	910063a1 	add	x1, x29, #0x18
  4007a8:	b8606821 	ldr	w1, [x1, x0]
  4007ac:	90000000 	adrp	x0, 400000 <_init-0x500>
  4007b0:	9123c000 	add	x0, x0, #0x8f0
  4007b4:	97ffff73 	bl	400580 <printf@plt>
  4007b8:	b940bfa0 	ldr	w0, [x29, #188]
  4007bc:	11000400 	add	w0, w0, #0x1
  4007c0:	b900bfa0 	str	w0, [x29, #188]
  4007c4:	b940bfa0 	ldr	w0, [x29, #188]
  4007c8:	71009c1f 	cmp	w0, #0x27
  4007cc:	54fffc6d 	b.le	400758 <fib_die+0x20>
  4007d0:	d503201f 	nop
  4007d4:	a8cc7bfd 	ldp	x29, x30, [sp], #192
  4007d8:	d65f03c0 	ret

00000000004007dc <c_output>:
  4007dc:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007e0:	910003fd 	mov	x29, sp
  4007e4:	91007fa1 	add	x1, x29, #0x1f
  4007e8:	90000000 	adrp	x0, 400000 <_init-0x500>
  4007ec:	9123e000 	add	x0, x0, #0x8f8
  4007f0:	97ffff60 	bl	400570 <__isoc99_scanf@plt>
  4007f4:	39407fa0 	ldrb	w0, [x29, #31]
  4007f8:	71008c1f 	cmp	w0, #0x23
  4007fc:	54000040 	b.eq	400804 <c_output+0x28>  // b.none
  400800:	97fffff7 	bl	4007dc <c_output>
  400804:	39407fa0 	ldrb	w0, [x29, #31]
  400808:	71008c1f 	cmp	w0, #0x23
  40080c:	54000060 	b.eq	400818 <c_output+0x3c>  // b.none
  400810:	39407fa0 	ldrb	w0, [x29, #31]
  400814:	97ffff5f 	bl	400590 <putchar@plt>
  400818:	d503201f 	nop
  40081c:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400820:	d65f03c0 	ret

0000000000400824 <main>:
  400824:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400828:	910003fd 	mov	x29, sp
  40082c:	97ffffec 	bl	4007dc <c_output>
  400830:	52800000 	mov	w0, #0x0                   	// #0
  400834:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400838:	d65f03c0 	ret
  40083c:	00000000 	.inst	0x00000000 ; undefined

0000000000400840 <__libc_csu_init>:
  400840:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400844:	910003fd 	mov	x29, sp
  400848:	a901d7f4 	stp	x20, x21, [sp, #24]
  40084c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf704>
  400850:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf704>
  400854:	91374294 	add	x20, x20, #0xdd0
  400858:	913722b5 	add	x21, x21, #0xdc8
  40085c:	a902dff6 	stp	x22, x23, [sp, #40]
  400860:	cb150294 	sub	x20, x20, x21
  400864:	f9001ff8 	str	x24, [sp, #56]
  400868:	2a0003f6 	mov	w22, w0
  40086c:	aa0103f7 	mov	x23, x1
  400870:	9343fe94 	asr	x20, x20, #3
  400874:	aa0203f8 	mov	x24, x2
  400878:	97ffff22 	bl	400500 <_init>
  40087c:	b4000194 	cbz	x20, 4008ac <__libc_csu_init+0x6c>
  400880:	f9000bb3 	str	x19, [x29, #16]
  400884:	d2800013 	mov	x19, #0x0                   	// #0
  400888:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  40088c:	aa1803e2 	mov	x2, x24
  400890:	aa1703e1 	mov	x1, x23
  400894:	2a1603e0 	mov	w0, w22
  400898:	91000673 	add	x19, x19, #0x1
  40089c:	d63f0060 	blr	x3
  4008a0:	eb13029f 	cmp	x20, x19
  4008a4:	54ffff21 	b.ne	400888 <__libc_csu_init+0x48>  // b.any
  4008a8:	f9400bb3 	ldr	x19, [x29, #16]
  4008ac:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4008b0:	a942dff6 	ldp	x22, x23, [sp, #40]
  4008b4:	f9401ff8 	ldr	x24, [sp, #56]
  4008b8:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4008bc:	d65f03c0 	ret

00000000004008c0 <__libc_csu_fini>:
  4008c0:	d65f03c0 	ret

Disassembly of section .fini:

00000000004008c4 <_fini>:
  4008c4:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4008c8:	910003fd 	mov	x29, sp
  4008cc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4008d0:	d65f03c0 	ret
